package com.example.data.factory.web1;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication(scanBasePackages = "com.example")
@MapperScan("com.example.data.factory.mapper.mapper")
public class DataFactoryWeb1Application {

    public static void main(String[] args) {
        SpringApplication.run ( DataFactoryWeb1Application.class, args );
    }
 @Bean
    public RestTemplate restTemplate( ) {
        return new RestTemplate ();
 }
}
